import socket
sk = socket.socket()
# 使sock对象关闭后，地址和端口马上释放
sk.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
address = ('192.168.43.21',10617)
sk.bind(address)
sk.listen(3)
print('waiting......')
while True:
    conn,addr = sk.accept()
    while True:
        data = conn.recv(29)
        if len(data)==29:
            print(data)
